import java.util.Scanner;

public class text69 {
    public static int search(int[]nums,int target)
    {
        int left=0;
        int right=nums.length-1;
        while(left<=right)
        {
            int mid=(left+right)/2;
            if(target>=nums[mid]&&target<=nums[mid+1])
            {
                return mid+1;
            }
            if(target>nums[mid])
            {
                left=mid+1;
            }
            if(target<nums[mid])
            {
                right=mid-1;
            }
        }
        if(nums[left]==target)
        {
            return left;
        }
        return nums.length;

    }

    public int x;
    public static void main(String[] args) {
        int[]nums={1,3,5,6};
        int target=2;
        int m=search(nums,target);
        String s1="1232";
        String s2="1233";
        System.out.println(s1.compareTo(s2));
        Integer var1=new Integer(1);
        Integer var2=var1;
        doSome(var2);
        //System.out.println(var1.intValue());
        //System.out.println(var1==var2);
        Scanner a=new Scanner(System.in);
        //System.out.println(x);
    }
    public static void doSome(Integer integer)
    {
        integer=new Integer(2);

    }
}
